import Vue from "vue";
import App from "./App.vue";
import store from "./store";
import { gsap } from "gsap";
import axios from "axios";
Vue.config.productionTip = false;
import glasscontext from "./components/MacComponents/GlassContext.vue";
import window from "./components/MacComponents/Macwindow.vue";
import ElementUI from "element-ui";

import VCharts from "v-charts";
Vue.use(VCharts);

import echarts from "echarts";
Vue.prototype.$echarts = echarts;

import "element-ui/lib/theme-chalk/index.css";
Vue.use(ElementUI);
// 全局注册毛玻璃组件 窗口组件
Vue.component("Glass", glasscontext);
Vue.component("Window", window);
// Gsap 和 axios
axios.defaults.baseURL = "http://localhost:5001";
Vue.prototype.gsap = gsap;
Vue.prototype.http = axios;
Vue.prototype.store = store;
// 引入字体图标
import("./static/IconFont/iconfont");
// 引入通用样式
import("./assets/css/transition.css");
// Gsap动画库
gsap.defaults({ ease: "none", duration: 0.5 });

new Vue({
  store,
  render: (h) => h(App),
  beforeCreate() {
    Vue.prototype.bus = this;
  },
}).$mount("#app");

// main.js:注册所有图标
